<%@ page  contentType="text/html; charset=UTF-8"%>
<%@ include file="../../public/public.jsp" %>
<% int rowColor = 1; 
	int pageSize = ((Integer)valueStack.findValue("pageForm.pageSize")).intValue();
	int pageNo = ((Integer)valueStack.findValue("pageForm.pageNo")).intValue();
	int rowNo = (pageNo-1)*pageSize+1;
%>
    <table  cellspacing="1" class="dataTableStyle"> 
    	<thead>
    	<s:if test="pagePosition.toLowerCase().equals('top') || pagePosition.toLowerCase().equals('all')">
    		<tr bgcolor="#FFFFFF">
    		
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    		<tr>
    			<th align="center" width=5%">序号</th>
    			<th align="center" width="85%">链接名称</th>
    			<ss:condition rescode="CommonLink" optcode="UPDATE||DELETE">
    			<th align="center" width="10%">操作</th>
    			</ss:condition>
    		</tr>
    	</thead>
    	<tbody>
    		<s:iterator value="data" var="obj">
    		
   				<% 
   				rowNo=1;
   				if((rowColor++ %2)==0){ %>
   					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs1">
   				<%}else{ %>
   					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs2">
   				<%} %>
    			<td align="center">
    			<%=rowNo++ %>
    			</td>
    			<td align="center">
	    			<a href='<s:property value="path"/>' style="cusor:hand" title="<s:property value="introduction"/>" target="_blank">
	    				<s:property value="linkName"/>
	    			</a>
    			</td>
    			<ss:condition rescode="CommonLink" optcode="UPDATE||DELETE">
    			<td align="center">
    				<ss:condition rescode="CommonLink" optcode="UPDATE">
						<a href="javascript:goUpdate(<s:property value="id"/>)">[修改]</a>
					</ss:condition>
					
    				<ss:condition rescode="CommonLink" optcode="DELETE">
						<a href="javascript:del(<s:property value="id"/>)">[删除]</a>
					</ss:condition>
    			</td>
    			</ss:condition>
    			
    		 </tr>
    		</s:iterator>
    	</tbody>
		<tfoot>
    	<s:if test="pagePosition.toLowerCase().equals('buttom') || pagePosition.toLowerCase().equals('all')">
    		<tr class="dataList_pageForm_style">
    			<td colspan="20" >
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    	</tfoot>
    </table>